<?php
	require_once("actions/GalerieAction.php");
	$action = new GalerieAction();
	$action->execute();
	include("header.php");
?>
<div id="galerie">
	<div id="photos">
		<ul>
			<?php 
				$res = $action->lire();
				foreach ($res as $img){
					$src = $img["".$action->lireNode("galerie", "src")];
					$alt = $img["".$action->lireNode("galerie", "alt")];
			?>
				<li><img src="<?php echo("".$src)?>" alt="<?php echo("".$alt)?>"/></li>
			<?php 
				}
			?>
		</ul>
	</div>
</div>
<?php 
	include("footer.php");
?>